﻿using KafkaSDK;
using Microsoft.Extensions.DependencyInjection;
using RabbitMQSDK;
using RishCenter.HttpApi.Client;
using Volo.Abp.AutoMapper;
using Volo.Abp.Domain;
using Volo.Abp.Modularity;

namespace DDDDemoABP1;

[DependsOn(
    typeof(AbpDddDomainModule),
    typeof(AbpAutoMapperModule),
    typeof(DDDDemoABP1DomainSharedModule)
)]
public class DDDDemoABP1DomainModule : AbpModule
{
    public override void ConfigureServices(ServiceConfigurationContext context)
    {
        base.ConfigureServices(context);
        context.Services.AddTransient<RishCheckService>();
        context.Services.AddTransient(typeof(KafkaTemplate<,>));
        context.Services.AddTransient(typeof(RabbitMQTemplate<,>));
    }
}
